//package com.wwm.makerandroid.makerandroid.View.Activity;
//
//
//import android.content.Intent;
//import android.os.Bundle;
//import android.support.v4.app.Fragment;
//import android.support.v4.app.FragmentManager;
//import android.support.v4.app.FragmentTransaction;
//import android.support.v7.app.AppCompatActivity;
//import android.util.Log;
//
//import com.lipiao.makerandroid.R;
//
//
//
//public class WebActivity extends AppCompatActivity {
//    //文章链接
//    String webURL;
//    //用户名
//    String userNumber;
//    String TAG = "WebActivity";
//    WebFragment webFragment;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_web);
//        Intent intent = getIntent();
//        webURL = intent.getStringExtra("webURL");
//        userNumber = intent.getStringExtra("userNumber");
//        Log.d(TAG, "onCreate: userNumber "+userNumber);
//        if (webFragment == null) {
//            replaceFragment(webFragment = WebFragment.newInstance(webURL,userNumber));
//        }
//
//    }
//
//    private void replaceFragment(Fragment fragment) {
//        /**
//         * https://blog.csdn.net/look_Future/article/details/79658861
//         * Fragment的生命周期和FragmentTransaction的主要方法
//         */
//        FragmentManager fragmentManager = getSupportFragmentManager();
//        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
//        //add(id, fragment) —— 增加framgent到队列中，并显示该fragment到指定布局中。
//        fragmentTransaction.add(R.id.web_fragment, fragment);
//        fragmentTransaction.commit();
//    }
//}